package com.platform.service;

import com.platform.dao.ApiLabelMapper;
import com.platform.dao.ApiUserVideoBillMapper;
import com.platform.entity.ApiLabelVo;
import com.platform.entity.ApiUserVideoBillVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Service接口
 *
 * @author zhurusen
 * @email 524227263@qq.com
 * @date 2018-05-15 15:50:14
 */
@Service
public class ApiUserVideoBillService {
    @Autowired
    private ApiUserVideoBillMapper apiUserVideoBillMapper;

    public void save(ApiUserVideoBillVo apiUserVideoBillVo) {
        apiUserVideoBillMapper.save(apiUserVideoBillVo);
    }

    public List<ApiUserVideoBillVo> selectList(Map<String, Object> param_bill) {
        return apiUserVideoBillMapper.queryList(param_bill);
    }

    public void del(Long id) {
        apiUserVideoBillMapper.delete(id);
    }

    public void updata(ApiUserVideoBillVo info) {
        apiUserVideoBillMapper.update(info);
    }

    public Integer selectCountByVideoId(Map<String, Object> param) {
        return apiUserVideoBillMapper.queryTotal(param);
    }
}
